<script type="text/javascript" src="/public/js/jquery.swfobject.js"></script>
<script language="javascript">
$(function(){	
	$('#sapload').flash({
		swf: '/public/flash/sapload.swf?'+Math.random(),
		height: 25,
		width: 450,
		allowFullScreen: true,
		wmode: 'transparent',
		//FLASH参数
		flashvars: {
			types: '*.xls;*.dbf',
			args: 'custom_id=<?php echo $_SESSION["custom_id"];?>',
			upUrl: "<?php echo UU('Nyi/yi/upload?ajax=true');?>",
			maxNum: '1',
			maxSize: '200',
			etmsg: '1',
			ltmsg: '1'
		}
	});
	
});

function sapLoadMsg(data){
	var data = runJson(data);
	if(!data.status){
		setTimeout(function(){
			$('#sapload_info').empty().hide();
		}, 5000);
		return;
	}
	if(data.file_path) $('#file_url').val(data.file_path);
}
</script>
<style type="text/css">
.script_table td.label {
	width:80px;
}
.script_table td {
	border-bottom:1px solid #eee;
	line-height:20px;
	padding:5px;
	text-align:left;
}

.script_table2 td.label {
	width:80px;
}
.script_table2 td {
	border-bottom:1px solid #eee;
	line-height:20px;
	padding:5px;
	text-align:left;
}
.script_table2 th {
	border-bottom:1px solid #eee;
	line-height:20px;
	padding:5px;
	background:#f1f1f1;
	text-align:left;
}
.testkeyul li,.slist li { width:280px; height:25px; line-height:25px; overflow:hidden; float:left; margin:0px; padding:0px; background:url(/public/images/licon.gif) left center no-repeat; padding-left:14px; }
.slist li { width:190px; }
</style>
<form id="testkeyform">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="script_table">
  <tr>
    <th width="100">从文件批量导入：</th>
    <td colspan="4"><div id="sapload"></div>
      <div id="sapload_info"></div>
      <input name="file_url" id="file_url" type="hidden" value=""/>
    </td>
	<td><a href="/custom_tmp/成衣廠.xls" target="_blank">下载文件模板</a></td>
  </tr>
</table>
</form>